<?php
// Lay cac thong so cau hinh chung
include "../../app_global.php";
// Lay cac hang so dung chung
include "../../const.php";
// Ket noi vao Database
include "../../connect.php";
// Ket noi vao Database bang ADO
include "../../connect_ado.php";
// Ham thuc hien lay ten file va hien thi noi dung
include "../../isa-lib/isa-function/isa_public_function.php";
//Ham xslt
include "../../isa-lib/isa-function/class_xslt.php";
// Kiem tra NSD da login hay qua timeout chua
include "../../test_login.php";
//
include "../../onegate_function.php";
// Khoi tao cac bien session de luu quyen thuc hien tren cac modul, function cua NSD hien thoi
include "../../init_session.php";
include "app_local.php";
// Lay cac hang so cua chuc nang nay
include "const.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_header.php";
}else{
	include "../../dsp_modal_dialog_header.php";
}

?>
<script src="../../isa-lib/isa-js/isa_util.js" ></script>
<script src="js_agency.js" ></script>
<?php
//	Dinh nghia cho Devedit
global $FOLDER_DEVEDIT_CLASS, $DEVEDIT_PATH;
include_once $FOLDER_DEVEDIT_CLASS;
//echo $fuseaction;
switch($fuseaction) {
	case "DISPLAY_SINGLE_AGENCY";	
		include "qry_single_agency.php";
		include "dsp_single_agency.php";	 
		break;
	case "DISPLAY_ALL_AGENCY";
		include "qry_all_agency.php";
		include "dsp_all_agency.php";	 
		break;
	case "UPDATE_AGENCY"; 
		include "act_update_agency.php";
		break;		
	case "DELETE_AGENCY";
		include "act_delete_agency.php"; 
		break;
	default:
		include "qry_all_agency.php";
		include "dsp_all_agency.php";	 
		break;
}
include "../../disconnect.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_footer.php";
}else{
	include "../../dsp_modal_dialog_footer.php";
}?>